﻿using Communergy.Powermeter;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CommunergyLogicTests.Helpers;
namespace CommunergyLogicTests
{
    
    
    /// <summary>
    ///This is a test class for PowermeterDataTest and is intended
    ///to contain all PowermeterDataTest Unit Tests
    ///</summary>
    [TestClass()]
    public class PowermeterDataTest
    {              

        /// <summary>
        ///A test for UserDeviceBaseUrl
        ///</summary>
        [TestMethod()]
        public void UserDeviceBaseUrlTest()
        {
            PowermeterData powerMeterData = PowermeterHelper.GetTestPowermeterData();
            var expectedUrl = "https://www.google.com/powermeter/feeds/user/07214542406431945487/07214542406431945487/variable/Communergy.CurrentCost128.Home.d2/durMeasurement";
            var targetUrl = powerMeterData.UserDeviceBaseUrl;
            Assert.AreEqual(expectedUrl, targetUrl);
        }

        
    }
}
